package com.cdx.spring.dynamic;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

/**
 * @author chedx
 * @data 2021/1/10 7:26 PM
 */
public class Arround  implements MethodInterceptor {

    public Object invoke(MethodInvocation invocation) throws Throwable {
        System.out.println("-----方法执行前------log");
        Object ret = invocation.proceed();
        System.out.println("-----方法执行后------log");
        return ret;
    }
}
